com.supermap.ar.areffect
Class ARViewElement
- java.lang.Object
-
- com.supermap.ar.areffect.AREffectElement
-
- com.supermap.ar.areffect.ARViewElement
-
- Direct Known Subclasses:
- ARWebViewElement
public class ARViewElement extends AREffectElement
AR special effect object - 2D view Uses ViewRenderable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.supermap.ar.areffect.AREffectElement
AREffectElement.onRenderableLoadCompleteListener, AREffectElement.OnTapListener, AREffectElement.OnTouchListener, AREffectElement.PositionType
-
-
Constructor Summary
Constructors Constructor and Description ARViewElement(android.content.Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description android.view.View
getView()
Gets the viewvoid
loadModel(int resourceId)
Loads the view (2D model of view)void
setHorizontalAlignment(ViewRenderable.HorizontalAlignment horizontalAlignment)
Set the horizontal center position.void
setVerticalAlignment(ViewRenderable.VerticalAlignment verticalAlignment)
Set vertical center point position, default bottom-
Methods inherited from class com.supermap.ar.areffect.AREffectElement
addChild, addChilds, addOnTapListener, addOnTouchListener, clearAllChilds, destroy, getAllChilds, getChild, getChild, getChild, getChildCount, getElementType, getId, getLocalScaleFactor, getOnRenderableLoadCompleteListener, getPosition, getPositionType, getRelativePosition, getRotationAngle, getRotationAxis, getScaleFactor, getWGSCoordinates, isShadowCaster, isShadowReceiver, isTransformable, isVisible, removeChild, removeChild, removeChild, removeChild, removeOnTapListener, removeOnTouchListener, setElementName, setLocalScaleFactor, setOnRenderableLoadCompleteListener, setParentNode, setParentNode, setParentNode, setPosition, setRelativePosition, setRelativePosition, setRotateAlwaysToCamera, setRotateToCameraType, setRotationAngle, setScaleFactor, setShadowCaster, setShadowReceiver, setTransformable, setVisiblity, setWGSCoordinates
-
-
-
-
Method Detail
-
loadModel
public void loadModel(int resourceId)
Loads the view (2D model of view)- Parameters:
resourceId
-
-
getView
public android.view.View getView()
Gets the view- Returns:
-
setVerticalAlignment
public void setVerticalAlignment(ViewRenderable.VerticalAlignment verticalAlignment)
Set vertical center point position, default bottom- Parameters:
verticalAlignment
-
-
setHorizontalAlignment
public void setHorizontalAlignment(ViewRenderable.HorizontalAlignment horizontalAlignment)
Set the horizontal center position. Default is center- Parameters:
horizontalAlignment
-
-
-